package Structural_design_pattern.Decorator_Pattern.Example2;

//抽象装饰类

public class CipherDecorator implements Cipher {
    private Cipher cipher;
    public CipherDecorator(Cipher cipher) {
        this.cipher = cipher;
    }

    public String Encrypt(String plainText) {
        return cipher.Encrypt(plainText);
    }
}
